package vip.xiaonuo.modular.front.bloglink;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import vip.xiaonuo.core.pojo.response.ResponseData;
import vip.xiaonuo.core.pojo.response.SuccessResponseData;
import vip.xiaonuo.modular.bloglink.service.BlogLinkService;

import javax.annotation.Resource;

/**
 * @author liu
 */
@RestController
@RequestMapping("/front")
public class FrontBlogLinkController {
    @Resource
    BlogLinkService blogLinkService;

    @GetMapping("/friendLink/list")
    public ResponseData friendsList() {
        return new SuccessResponseData(blogLinkService.list());
    }
}
